// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App'
// noinspection JSAnnotator
import router from './router'
import less from 'less'
import "./assets/css/global.css"
import  MyServerHttp from  './plugins/http'
import moment from 'moment'


//import axios from 'axios'
//Vue.prototype.$http = axios
Vue.use(MyServerHttp)
Vue.use(less)
Vue.use(ElementUI)
Vue.config.productionTip = false

//全局过滤器处理时间,number为转为数字
Vue.filter('fmtdate',(v)=>{
  return moment(Number(v)).format("YYYY-MM-DD")
})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
